#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QToolBar>
#include <QAction>

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    ui->stackedWidget->setCurrentIndex(0);

    //设置翻页
    connect(ui->actionFace, &QAction::triggered, [=](){
        ui->stackedWidget->setCurrentIndex(0);
    });
    connect(ui->actionSound, &QAction::triggered, [=](){
        ui->stackedWidget->setCurrentIndex(1);
    });


}

MainWindow::~MainWindow()
{
    delete ui;
}
